package com.ggb.repository;

import com.ggb.entity.Menu;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface MenuRepository {
    List<Menu> findAll(int index,int limit);
    int count();
    void save(Menu menu);
    Menu findById(long id);
    void update(Menu menu);
    int deleteById(long id);
}

